package com.ithei.date.异常;

import java.util.ArrayList;
import java.util.List;

public class List集合 {
    public static void main(String[] args) {
        List<String> list=new ArrayList<String>();
        list.add(0,"aaa");
        list.add(0,"bbb");
        list.add(0,"ccc");
        list.add(0,"ddd");
        list.add(0,"eee");
        list.add(0,"fff");
        list.add(0,"ggg");
        System.out.println(list);
        String remove = list.remove(0);
        System.out.println(list);
        list.remove("bbb");
        System.out.println(list);
        String set = list.set(0, "aaaaaa");//"ccc"
        System.out.println(list);
        String s = list.get(1);
        System.out.println(s);

    }
}
